package com.itcast.netty.client;

import lombok.extern.slf4j.Slf4j;
import org.springframework.boot.CommandLineRunner;
import org.springframework.core.annotation.Order;
import org.springframework.stereotype.Component;

/**
 * Netty客户端监听
 * 主要用于延迟测试RPC和启动NettyClient
 *
 * @author eternity
 */
@Slf4j
@Order(0)
@Component
public class NettyClientListener implements CommandLineRunner {
    @Override
    public void run(String... args) throws Exception {
        log.info("{} -> [准备与服务器端通讯]", this.getClass().getName());
    }
}
